/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 40px 0;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 导航栏样式 */
.main-nav {
    background-color: #34495e;
    border-radius: 8px;
    margin-bottom: 20px;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-item a:hover {
    background-color: #2c3e50;
}

/* 二级菜单样式 */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    z-index: 100;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    list-style: none;
}

.submenu a {
    padding: 12px 25px;
    font-size: 0.9em;
}

/* 主要内容区域样式 */
main {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.content-left, .content-right {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content-left {
    flex: 2;
}

.content-right {
    flex: 1;
}

h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 友情链接样式 */
.friend-links {
    list-style: none;
}

.friend-links li {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.friend-links li:hover {
    transform: translateX(10px);
}

.friend-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #34495e;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.friend-links a:hover {
    background-color: #e9ecef;
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.friend-links .icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.friend-links span {
    font-size: 1em;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .submenu {
        position: static;
        display: none;
    }
    
    .has-submenu:hover .submenu {
        display: block;
    }
}